layui.define([ 'form', 'laydate', 'table'], function(exports) {
    var form = layui.form;
    var table = layui.table;
    var index = layui.index;
    var popUserCreditTable = null;
    var view = {
        init:function(){
        	  this.initSubmit();
        	  this.initTable();
        },
        initTable:function(){
        	popUserCreditTable = table.render({
                elem : '#popUserCreditTable',
                height : Lib.getTableHeight(1),
                method : 'post',
                url : Common.ctxPath + '/user/popUserCredit/list.json' // 数据接口
               ,page : Lib.tablePage // 开启分页
               ,limit : 10,
                cols : [ [ // 表头
                {
                type : 'checkbox',
                fixed:'left',
                }, 
                {
                field : 'mtime', 
                title : '时间',
                width : 180
                }, 
                {
                field : 'memo', 
                title : '事件',
                width : 180
                }, 
                {
                field : 'orderId', 
                title : '订单号',
                width : 180
                }, 
                {
                field : 'money', 
                title : '变动金额',
                width : 180
                }, 
                {
                field : 'creditUse', 
                title : '当前余额',
                width : 200
                }, 
               
               
                ] ]
        
            });
       
        
        },
        initSubmit:function(){
        }
            
    }
    exports('index',view);
	
});